gtk4.git
13 years agoI guess I can call myself a coauthor of this now
Federico Mena Quintero [Tue, 11 Sep 2012 20:45:56 +0000 (15:45 -0500)]
I guess I can call myself a coauthor of this now

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoAdd machinery for Nautilus to set up the trash state
Federico Mena Quintero [Tue, 11 Sep 2012 20:44:29 +0000 (15:44 -0500)]
Add machinery for Nautilus to set up the trash state

We add a method to say whether the trash is full/empty (to use the appropriate icon),
and a signal that the sidebar can use to request that the trash be emptied when
the user selects 'Empty trash' from the context menu.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove unused field
Federico Mena Quintero [Tue, 11 Sep 2012 20:21:58 +0000 (15:21 -0500)]
Remove unused field

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoImplement bookmark reordering, at least the core
Federico Mena Quintero [Tue, 11 Sep 2012 20:17:03 +0000 (15:17 -0500)]
Implement bookmark reordering, at least the core

The drag-and-drop part is missing; that still needs de-nautilus-ifying.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoFactor out code to find a bookmark in the list of bookmarks
Federico Mena Quintero [Tue, 11 Sep 2012 20:02:01 +0000 (15:02 -0500)]
Factor out code to find a bookmark in the list of bookmarks

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoAdd set_show_properties and set_show_trash APIs
Federico Mena Quintero [Tue, 11 Sep 2012 19:33:47 +0000 (14:33 -0500)]
Add set_show_properties and set_show_trash APIs

Currently they default to false.  This also fixes warnings with uninitialized widgets
in bookmarks_check_popup_sensitivity().

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoMake renaming bookmarks work
Federico Mena Quintero [Mon, 10 Sep 2012 20:03:13 +0000 (15:03 -0500)]
Make renaming bookmarks work

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoMake removing bookmarks work
Federico Mena Quintero [Mon, 10 Sep 2012 19:43:30 +0000 (14:43 -0500)]
Make removing bookmarks work

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoIf a bookmark doesn't have an explicit label, use the display name of the file
Federico Mena Quintero [Fri, 7 Sep 2012 19:36:05 +0000 (14:36 -0500)]
If a bookmark doesn't have an explicit label, use the display name of the file

We query the file info for display name and icon synchronously.  If it becomes a problem,
we'll make it async, more in line with NautilusBookmark.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoConnect to location-selected on the places sidebar, and actually switch folders\!
Federico Mena Quintero [Fri, 7 Sep 2012 19:35:56 +0000 (14:35 -0500)]
Connect to location-selected on the places sidebar, and actually switch folders\!

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoSync with NautilusPlacesSidebar
Federico Mena Quintero [Fri, 7 Sep 2012 15:04:42 +0000 (10:04 -0500)]
Sync with NautilusPlacesSidebar

This syncs the code up to commit 4b6abf644b from Nautilus.
This only refers to nautilus-places-sidebar.[ch].

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoUse the correct GTK_TYPE_PLACES_OPEN_MODE instead of a generic enum type
Federico Mena Quintero [Thu, 6 Sep 2012 01:13:25 +0000 (20:13 -0500)]
Use the correct GTK_TYPE_PLACES_OPEN_MODE instead of a generic enum type

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoCreate the places sidebar instead of the old custom treeview
Federico Mena Quintero [Thu, 6 Sep 2012 00:48:16 +0000 (19:48 -0500)]
Create the places sidebar instead of the old custom treeview

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoFix compilation
Federico Mena Quintero [Tue, 4 Sep 2012 02:29:48 +0000 (21:29 -0500)]
Fix compilation

13 years agoAdd missing includes
Federico Mena Quintero [Tue, 4 Sep 2012 02:04:26 +0000 (21:04 -0500)]
Add missing includes

13 years agoFix compilation
Federico Mena Quintero [Tue, 4 Sep 2012 02:03:12 +0000 (21:03 -0500)]
Fix compilation

13 years ago#if out another bunch of stuff, to make the fucking thing compile
Federico Mena Quintero [Fri, 25 Nov 2011 20:44:07 +0000 (14:44 -0600)]
#if out another bunch of stuff, to make the fucking thing compile

13 years ago#if out a few things
Federico Mena Quintero [Thu, 17 Nov 2011 14:08:49 +0000 (08:08 -0600)]
#if out a few things

13 years agoAdd gtkplacessidebar.[ch] to Makefile.am and fix compilation errors
Federico Mena Quintero [Thu, 6 Oct 2011 14:20:32 +0000 (09:20 -0500)]
Add gtkplacessidebar.[ch] to Makefile.am and fix compilation errors

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Conflicts:
gtk/Makefile.am

13 years agoAdd a bunch of '#if DO_NOT_COMPILE' to remove nautilus-isms temporarily
Federico Mena Quintero [Thu, 6 Oct 2011 13:18:09 +0000 (08:18 -0500)]
Add a bunch of '#if DO_NOT_COMPILE' to remove nautilus-isms temporarily

This is just so that I can start compiling this file and testing it.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove stale code to deal with preferences
Federico Mena Quintero [Wed, 5 Oct 2011 15:19:59 +0000 (10:19 -0500)]
Remove stale code to deal with preferences

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoDon't leak the bookmarks when enumerating them
Federico Mena Quintero [Wed, 5 Oct 2011 14:53:09 +0000 (09:53 -0500)]
Don't leak the bookmarks when enumerating them

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoInsert bookmarks during drag-and-drop operations
Federico Mena Quintero [Wed, 5 Oct 2011 14:27:55 +0000 (09:27 -0500)]
Insert bookmarks during drag-and-drop operations

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoReplacement for nautilus_get_desktop_directory()
Federico Mena Quintero [Wed, 5 Oct 2011 13:46:43 +0000 (08:46 -0500)]
Replacement for nautilus_get_desktop_directory()

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoReplacement for eel_pop_up_context_menu()
Federico Mena Quintero [Wed, 5 Oct 2011 13:11:14 +0000 (08:11 -0500)]
Replacement for eel_pop_up_context_menu()

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoReplace eel_gtk_menu_append_separator()
Federico Mena Quintero [Wed, 5 Oct 2011 12:28:14 +0000 (07:28 -0500)]
Replace eel_gtk_menu_append_separator()

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoReplace eel_create_spotlight_pixbuf()
Federico Mena Quintero [Wed, 5 Oct 2011 12:26:26 +0000 (07:26 -0500)]
Replace eel_create_spotlight_pixbuf()

We use the normal gtk_style_context_set_state() machinery to set a
prelighted state.  Hopefully even symbolic icons will be rendered
prelighted properly.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoGet icons for user-special directories
Federico Mena Quintero [Tue, 4 Oct 2011 22:40:08 +0000 (17:40 -0500)]
Get icons for user-special directories

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoUse the correct icon for trash
Federico Mena Quintero [Tue, 4 Oct 2011 22:34:27 +0000 (17:34 -0500)]
Use the correct icon for trash

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoReplace an icon name with a macro
Federico Mena Quintero [Tue, 4 Oct 2011 22:10:01 +0000 (17:10 -0500)]
Replace an icon name with a macro

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoDon't use gtk_icon_theme_get_default(); use the screen-specific theme
Federico Mena Quintero [Tue, 4 Oct 2011 22:09:33 +0000 (17:09 -0500)]
Don't use gtk_icon_theme_get_default(); use the screen-specific theme

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoReplacement for the NautilusIconInfo machinery
Federico Mena Quintero [Tue, 4 Oct 2011 22:07:59 +0000 (17:07 -0500)]
Replacement for the NautilusIconInfo machinery

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoNew signal show-error-message
Federico Mena Quintero [Tue, 4 Oct 2011 21:47:31 +0000 (16:47 -0500)]
New signal show-error-message

We need to ask the caller to pop up error messages for us, so it can do
it with its own conventions:  pick the right transient window, use a status
bar rather than a dialog, etc.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoReplacement for eel_gtk_tree_view_set_activate_on_single_click()
Federico Mena Quintero [Tue, 4 Oct 2011 16:34:44 +0000 (11:34 -0500)]
Replacement for eel_gtk_tree_view_set_activate_on_single_click()

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoFunction to set whether to show the Desktop item
Federico Mena Quintero [Tue, 4 Oct 2011 14:47:41 +0000 (09:47 -0500)]
Function to set whether to show the Desktop item

It sucks to have this as an app-settable option.  Maybe we should
make this a standard GSetting thing and be done with it.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoAdd functions to say whether multiple tabs/windows are supported
Federico Mena Quintero [Tue, 4 Oct 2011 14:22:11 +0000 (09:22 -0500)]
Add functions to say whether multiple tabs/windows are supported

The file chooser will leave these off by default; file managers
like Nautilus will turn them on.

These control whether the places sidebar shows 'open in new tab' and similar
items in its context menu.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoReplace an icon-size macro from Nautilus
Federico Mena Quintero [Tue, 4 Oct 2011 14:20:42 +0000 (09:20 -0500)]
Replace an icon-size macro from Nautilus

13 years agoUse macros for themed icon names
Federico Mena Quintero [Tue, 4 Oct 2011 13:14:33 +0000 (08:14 -0500)]
Use macros for themed icon names

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoTentatively accept any drags of URI lists
Federico Mena Quintero [Tue, 4 Oct 2011 11:05:41 +0000 (06:05 -0500)]
Tentatively accept any drags of URI lists

Don't try to decide if the URIs are acceptable / not duplicates; the
idea is to let the user bookmark whatever he pleases.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoUse our own function to compute icon sizes
Federico Mena Quintero [Tue, 4 Oct 2011 11:02:09 +0000 (06:02 -0500)]
Use our own function to compute icon sizes

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoReplace nautilus_window_set_initiated_unmount() with an initiated-unmount signal
Federico Mena Quintero [Mon, 3 Oct 2011 16:51:46 +0000 (11:51 -0500)]
Replace nautilus_window_set_initiated_unmount() with an initiated-unmount signal

This signal just carries a boolean initiated_unmount argument, which
is meant to say True when the unmount/eject starts, and False when
the operation finishes.

We may want to rename all of this to unmount_started / stopped, etc.
I don't know if the caller needs to know about the mount_op in question,
or if it can be inferred from what the caller knows to be the current
shown location on the GtkPlacesSidebar.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove the use of NautilusWindow
Federico Mena Quintero [Mon, 3 Oct 2011 16:38:26 +0000 (11:38 -0500)]
Remove the use of NautilusWindow

Now we just need to see if we need to replace calls to
nautilus_window_set_initiated_unmount() with a signal.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove the last use of nautilus_window_slot_get_current_uri()
Federico Mena Quintero [Mon, 3 Oct 2011 16:11:48 +0000 (11:11 -0500)]
Remove the last use of nautilus_window_slot_get_current_uri()

This is just sidebar->uri, the current URI in the sidebar.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoReplacement for nautilus_get_home_directory_uri()
Federico Mena Quintero [Mon, 3 Oct 2011 16:08:25 +0000 (11:08 -0500)]
Replacement for nautilus_get_home_directory_uri()

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoMake the main update_places() use GtkBookmarksManager
Federico Mena Quintero [Mon, 3 Oct 2011 15:27:41 +0000 (10:27 -0500)]
Make the main update_places() use GtkBookmarksManager

There are still some missing pieces to get the bookmark's icon,
and *maybe* to cull the list of bookmarks based on some criteria.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoCreate the bookmarks manager from the places sidebar
Federico Mena Quintero [Mon, 3 Oct 2011 14:44:46 +0000 (09:44 -0500)]
Create the bookmarks manager from the places sidebar

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoCancel and disconnect from the bookmarks monitor when done
Federico Mena Quintero [Fri, 30 Sep 2011 14:43:59 +0000 (09:43 -0500)]
Cancel and disconnect from the bookmarks monitor when done

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRead the legacy bookmarks file
Federico Mena Quintero [Tue, 4 Sep 2012 01:52:27 +0000 (20:52 -0500)]
Read the legacy bookmarks file

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove the bookmarking bits from GtkFileSystem
Federico Mena Quintero [Fri, 30 Sep 2011 13:50:31 +0000 (08:50 -0500)]
Remove the bookmarking bits from GtkFileSystem

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Conflicts:
gtk/gtkfilesystem.c

13 years agoMake GtkFileChooserButton use GtkBookmarksManager
Federico Mena Quintero [Fri, 30 Sep 2011 13:50:15 +0000 (08:50 -0500)]
Make GtkFileChooserButton use GtkBookmarksManager

It's unfortunate that now we have two instances of the bookmarks manager
for each GtkFileChooserButton; one for the button itself and one for the
underlying GtkFileChooserDefault.  We may refactor that in the future.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoMake gtk_places_sidebar_set_current_uri() handle NULL URIs to unselect all
Federico Mena Quintero [Fri, 30 Sep 2011 13:10:57 +0000 (08:10 -0500)]
Make gtk_places_sidebar_set_current_uri() handle NULL URIs to unselect all

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoMake GtkFileChooserDefault use GtkBookmarksManager
Federico Mena Quintero [Thu, 29 Sep 2011 19:36:35 +0000 (14:36 -0500)]
Make GtkFileChooserDefault use GtkBookmarksManager

It no longer uses GtkFileSystem to deal with bookmarks.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoSplit out a GtkBookmarksManager from gtkfilesystem.[ch]
Federico Mena Quintero [Thu, 29 Sep 2011 14:24:57 +0000 (09:24 -0500)]
Split out a GtkBookmarksManager from gtkfilesystem.[ch]

We had the bookmarks machinery in GtkFileSystem for historical reasons.
Now, we'll keep this separately.  This will allow us to make the
bookmarks machinery public if needed in the future.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Conflicts:
gtk/Makefile.am

13 years agoRename NautilusShortcutsModelFilter to ShortcutsModelFilter
Federico Mena Quintero [Wed, 28 Sep 2011 15:48:56 +0000 (10:48 -0500)]
Rename NautilusShortcutsModelFilter to ShortcutsModelFilter

It's unfortunate that we need a filter model to do the DnD stuff...

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoNew 'location-selected' signal
Federico Mena Quintero [Wed, 28 Sep 2011 15:44:40 +0000 (10:44 -0500)]
New 'location-selected' signal

Instead of directly calling the Nautilus machinery to open locations
in tabs or windows, we emit a signal which the caller must handle.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoAdd a GtkPlacesOpenMode enum to say how a shortcut should be opened
Federico Mena Quintero [Wed, 28 Sep 2011 15:22:05 +0000 (10:22 -0500)]
Add a GtkPlacesOpenMode enum to say how a shortcut should be opened

Nautilus lets you open things in the same tab, in a new tab, or in
a new window.  We will expose these semantics through an enum, as
part of an 'open' signal.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove the 'nautilus' prefix from some constants
Federico Mena Quintero [Wed, 28 Sep 2011 14:28:47 +0000 (09:28 -0500)]
Remove the 'nautilus' prefix from some constants

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoAdd gtk_places_sidebar_set_current_uri()
Federico Mena Quintero [Wed, 7 Sep 2011 22:55:21 +0000 (17:55 -0500)]
Add gtk_places_sidebar_set_current_uri()

And remove the code that updated the current URI automatically based
on a NautilusWindow.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoConnect to the volume monitor at the time of its creation
Federico Mena Quintero [Wed, 7 Sep 2011 22:46:28 +0000 (17:46 -0500)]
Connect to the volume monitor at the time of its creation

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoDon't take a NautilusWindow argument in gtk_places_sidebar_new()
Federico Mena Quintero [Wed, 7 Sep 2011 22:40:49 +0000 (17:40 -0500)]
Don't take a NautilusWindow argument in gtk_places_sidebar_new()

We will move the window-related initialization to ::map() or to a constructor.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoUpdate the top comment in gtkplacessidebar.c
Federico Mena Quintero [Wed, 7 Sep 2011 20:17:26 +0000 (15:17 -0500)]
Update the top comment in gtkplacessidebar.c

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove unused structs
Federico Mena Quintero [Wed, 7 Sep 2011 19:58:36 +0000 (14:58 -0500)]
Remove unused structs

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoExport GtkPlacesSidebar and the Class types, for subclassing
Federico Mena Quintero [Wed, 7 Sep 2011 19:58:19 +0000 (14:58 -0500)]
Export GtkPlacesSidebar and the Class types, for subclassing

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoRemove Nautilus includes
Federico Mena Quintero [Tue, 6 Sep 2011 23:15:59 +0000 (18:15 -0500)]
Remove Nautilus includes

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoReplace 'NautilusPlacesSidebar' with 'GtkPlacesSidebar'
Federico Mena Quintero [Tue, 6 Sep 2011 23:11:19 +0000 (18:11 -0500)]
Replace 'NautilusPlacesSidebar' with 'GtkPlacesSidebar'

Function names are of course of the form gtk_places_sidebar_*() now.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
13 years agoCopy nautilus-places-sidebar.[ch] as gtkplacessidebar.[ch]
Federico Mena Quintero [Tue, 6 Sep 2011 22:53:30 +0000 (17:53 -0500)]
Copy nautilus-places-sidebar.[ch] as gtkplacessidebar.[ch]

13 years ago[GtkFileChooserButton] bgo#645065 - Restore the previously-selected file when the...
Sebastian Geiger [Fri, 31 Aug 2012 17:02:00 +0000 (12:02 -0500)]
[GtkFileChooserButton] bgo#645065 - Restore the previously-selected file when the button's GtkFileChooserDialog is canceled

The file chooser is asynchronous, so doing 'select_file (old_file)' and subsequently querying
the file for updating the labels is not going to work.  However, the underlying file chooser
will emit 'selection-changed' as appropriate when it finishes restoring the old file.  So,
we only need to update the labels when the file chooser dialog is confirmed, not cancelled.

13 years agoMove entry completion code where it belongs
Matthias Clasen [Fri, 31 Aug 2012 14:47:23 +0000 (10:47 -0400)]
Move entry completion code where it belongs

This commit moves all the entry completion implementation
into gtkentrycompletion.c. It also gets rid of an unnecessary
completion_device member in GtkEntryPrivate.

13 years agoGtkEntry: pack GtkEntryPrivate a bit better
Matthias Clasen [Fri, 31 Aug 2012 02:14:23 +0000 (22:14 -0400)]
GtkEntry: pack GtkEntryPrivate a bit better

13 years agoAlso compile gtkdbusgenerated.c on non-UNIX environments
Erik van Pienbroek [Mon, 27 Aug 2012 20:18:29 +0000 (22:18 +0200)]
Also compile gtkdbusgenerated.c on non-UNIX environments

When compiling gtk on Win32 then the file gtkdbusgenerated.c also needs to be
compiled and linked into the gtk library as it's needed for GtkMountOperation

https://bugzilla.gnome.org/show_bug.cgi?id=682825

13 years agoAlways make primary headings bold in message dialogs
William Jon McCann [Wed, 29 Aug 2012 21:19:49 +0000 (17:19 -0400)]
Always make primary headings bold in message dialogs

Unless they have markup. But only use big text if there is
secondary text.

https://bugzilla.gnome.org/show_bug.cgi?id=683001

13 years agoUpdated Kazakh translation
Baurzhan Muftakhidinov [Thu, 30 Aug 2012 17:04:39 +0000 (23:04 +0600)]
Updated Kazakh translation

13 years agoRemove unintentional symbol export
Matthias Clasen [Wed, 29 Aug 2012 22:16:34 +0000 (18:16 -0400)]
Remove unintentional symbol export

Just a forgotten static.

13 years agoRevert "gtk: Fix exports for new symbols"
Matthias Clasen [Wed, 29 Aug 2012 22:15:46 +0000 (18:15 -0400)]
Revert "gtk: Fix exports for new symbols"

This reverts commit 07b33586e2552faece4a404c01cffb340ab7fc62.

13 years agogtk: Fix exports for new symbols
Rico Tzschichholz [Wed, 29 Aug 2012 06:17:36 +0000 (08:17 +0200)]
gtk: Fix exports for new symbols

13 years agoUpdate config.h.win32.in
Chun-wei Fan [Wed, 29 Aug 2012 04:19:56 +0000 (12:19 +0800)]
Update config.h.win32.in

Make the entries more in line with those given in the generated
config.h.in.

13 years agoUpdated Galician translations
Fran Diéguez [Tue, 28 Aug 2012 22:08:53 +0000 (00:08 +0200)]
Updated Galician translations

13 years agoUpdated Lithuanian translation
Aurimas Černius [Tue, 28 Aug 2012 19:17:30 +0000 (22:17 +0300)]
Updated Lithuanian translation

13 years agoscrolled-window: fix rendering of scrolled window background
Cosimo Cecchi [Tue, 28 Aug 2012 15:51:18 +0000 (11:51 -0400)]
scrolled-window: fix rendering of scrolled window background

- don't poke at the children's background pattern at draw time, but just
  call gtk_render_background()
- we should propagate rendering of the background to the overshoot
  window when the state flags or the style changes, or it won't respond
  to e.g. focused/backdrop changes correctly

https://bugzilla.gnome.org/show_bug.cgi?id=682854

13 years agocss: Remove unused macro
Benjamin Otte [Tue, 28 Aug 2012 13:30:23 +0000 (15:30 +0200)]
css: Remove unused macro

GTK_CSS_DEPENDS_ON_EVERYTHING was used as a placeholder when
implementing dependencies. Now that dependencies are completely
implemented, it's no longer necessary.

13 years agocssimage: Implement dependencies for images
Benjamin Otte [Tue, 28 Aug 2012 13:29:56 +0000 (15:29 +0200)]
cssimage: Implement dependencies for images

13 years agocssvalue: Implement dependency tracking for gradients
Benjamin Otte [Mon, 27 Aug 2012 16:39:46 +0000 (18:39 +0200)]
cssvalue: Implement dependency tracking for gradients

13 years agocssvalue: Handle dependencies for typed values
Benjamin Otte [Mon, 27 Aug 2012 15:52:02 +0000 (17:52 +0200)]
cssvalue: Handle dependencies for typed values

13 years agocss: Make color lookup handle dependencies
Benjamin Otte [Mon, 27 Aug 2012 15:27:06 +0000 (17:27 +0200)]
css: Make color lookup handle dependencies

13 years agocss: Handle some more simple cases of dependencies
Matthias Clasen [Sat, 25 Aug 2012 15:22:14 +0000 (11:22 -0400)]
css: Handle some more simple cases of dependencies

13 years agocssvalue: First step of proper dependency tracking
Benjamin Otte [Fri, 24 Aug 2012 23:59:13 +0000 (01:59 +0200)]
cssvalue: First step of proper dependency tracking

Instead of using the EVERYTHING aka FIXME value for tdependencies,
actually compute the dependencies in a bunch of simple cases.

13 years agostylecontext: Update computed values when dependencies change
Benjamin Otte [Fri, 24 Aug 2012 16:17:52 +0000 (18:17 +0200)]
stylecontext: Update computed values when dependencies change

This fixes the longstanding bug where GTK would not update styles when
parent styles would change.

https://bugzilla.gnome.org/show_bug.cgi?id=672046

13 years agostylecontext: Refactor some code
Benjamin Otte [Fri, 24 Aug 2012 16:17:07 +0000 (18:17 +0200)]
stylecontext: Refactor some code

This just changes the arguments passed to build_properties() and moves
that function around in the source file. No functional changes are
happening.

13 years agocss: Pass relevant properties to css lookup code
Benjamin Otte [Fri, 24 Aug 2012 15:31:57 +0000 (17:31 +0200)]
css: Pass relevant properties to css lookup code

This is not used yet in this patch.

13 years agocomputedvalues: Pass dependencies to set_value()
Benjamin Otte [Fri, 24 Aug 2012 15:00:02 +0000 (17:00 +0200)]
computedvalues: Pass dependencies to set_value()

This simplifies the code.

13 years agostylecontext: Compute correct changes
Benjamin Otte [Fri, 24 Aug 2012 14:28:47 +0000 (16:28 +0200)]
stylecontext: Compute correct changes

... in the case where no change of the DOM tree actually happened.

We don't do anything yet with that information, this patch just
correctly computes it.

13 years agostylecontext: Split out a function for simplicity
Benjamin Otte [Tue, 24 Jul 2012 14:22:06 +0000 (16:22 +0200)]
stylecontext: Split out a function for simplicity

13 years agocssomputedvalues: Track dependencies
Benjamin Otte [Mon, 23 Jul 2012 14:14:20 +0000 (16:14 +0200)]
cssomputedvalues: Track dependencies

We now track what values have dependencies on what other values so that
we could in theory recompute them when we need to.

13 years agostylecontext: Pass the changes in the parent to validation function
Benjamin Otte [Wed, 18 Jul 2012 14:55:32 +0000 (16:55 +0200)]
stylecontext: Pass the changes in the parent to validation function

This way, inherited properties can be updated.

13 years agocss: Introduce dependencies for value computations
Benjamin Otte [Mon, 16 Jul 2012 12:48:43 +0000 (14:48 +0200)]
css: Introduce dependencies for value computations

When values are computed, they might depend on various other values and
we need to track this so we can update the values when those other
values change. This is the first step in making that happen.

This patch does not do any dependency tracking at all, instead it uses
GTK_CSS_DEPENDS_ON_EVERYTHING as a sort of FIXME.

13 years agocss: Move computing of initial and inherit values
Benjamin Otte [Tue, 17 Jul 2012 12:01:52 +0000 (14:01 +0200)]
css: Move computing of initial and inherit values

... to the compute vfunc. Simplifies code quite a bit. But makes the
code no longer a simple step-by-step implementation of the spec.

13 years agocssstyleproperty: Get rid of unused API
Benjamin Otte [Mon, 16 Jul 2012 12:28:58 +0000 (14:28 +0200)]
cssstyleproperty: Get rid of unused API

Both _gtk_css_style_property_print_value() and
_gtk_css_style_property_compute_value() aren't necessary anymore and are
replaced by _gtk_css_value_print() and _gtk_css_value_comptue()
respectively.

13 years agocsscustomproperty: Move compute code to GtkCssTypedValue
Benjamin Otte [Mon, 16 Jul 2012 12:15:19 +0000 (14:15 +0200)]
csscustomproperty: Move compute code to GtkCssTypedValue

This way, we don't need the print_value vfunc anymore.

13 years agocssstyleproperty: Don't set print or compute vfuncs anymore
Benjamin Otte [Mon, 16 Jul 2012 12:01:37 +0000 (14:01 +0200)]
cssstyleproperty: Don't set print or compute vfuncs anymore

Nobody does that these days.

13 years agocssstyleproperty: Remove all useless compute vfuncs
Benjamin Otte [Mon, 16 Jul 2012 11:53:19 +0000 (13:53 +0200)]
cssstyleproperty: Remove all useless compute vfuncs

Now that we call _compute() by default, we don't need any special cases
anymore that do the same thing.